@ECHO OFF

ECHO Generating translations ...

IF %QTDIR%=="" (
  ECHO QTDIR not set. Using C:\Qt\4.8.1 setme in copy_release.bat
  set QTDIR=C:\Qt\4.8.1
)

REM // Get parent directory
for %%? in ("%~dp0..") do set parent=%%~f?

ECHO Updating translation strings
%QTDIR%\bin\lupdate %parent%\PlacesParserProject.pro

ECHO Generating .qm file
%QTDIR%\bin\lrelease %parent%\PlacesParser\PlacesParser_en.ts

ECHO Copying .qm file to ..\bin\debug
XCOPY /Y %parent%\PlacesParser\PlacesParser_en.qm %parent%\bin\debug\

ECHO Copying .qm file to ..\bin\deploy
XCOPY /Y %parent%\PlacesParser\PlacesParser_en.qm %parent%\bin\deploy\
